package com.huohuo.javabasic.reference;

import java.lang.ref.SoftReference;

/**
 * 软引用
 */
public class SoftReferenceTest {
    public static void main(String[] args) {
        String a = "123";
        SoftReference<String> softReference = new SoftReference<>( a );
        String b = softReference.get();
        System.out.println(b);

    }
}
